package com.ruoyi.system.domain.event;

import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * 用户订单事件
 */
@Getter
public class OrderMessageEvent extends ApplicationEvent {

    /**
     * 订单号
     */
    private final String orderNo;

    /**
     * 内容
     */
    private final String content;

    /**
     * 用户id
     */
    private final Long userId;



    public OrderMessageEvent(Object source, String orderNo, String content, Long userId) {
        super(source);
        this.orderNo = orderNo;
        this.content = content;
        this.userId = userId;
    }
}
